﻿<?php
include "includeFiles.php";


if(empty($cateid)) $cateid=11010;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="X-UA-Compatible" content="IE=7" />

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $C['Title'];?></title>
<Link href="../uploadfile/ico/<?php echo $C['ICO'];?>" rel="Shortcut Icon">
<meta name="Keywords" content="<?php echo $C['Keywords'];?>">
<meta name="description" content="<?php echo $C['Description'];?>">
<Meta name="Copyright" Content="<?php echo $C['CopyRight'];?>">

<link href="css/reset.css" rel="stylesheet" type="text/css" media="screen" />
<link href="css/style.css" rel="stylesheet" type="text/css" media="screen" />
<script language="javascript" src="js/MSClass.js"></script>
<script src="./admin/js/checkSubmit.js"></script>
<script language="javascript">
	 function checkFrms(dom){
	if(!check_empty(dom.user_email,"邮箱不能为空！")) return false;
		if(!check_isemail(dom.user_email,"邮箱格式不正确！")) return false;
	if(!check_empty(dom.user_pws,"密码不能为空！")) return false;
		return true;
	 }

</script>
</head>
<body>
<?php include_once('header.php');?>
<?php include_once('ad.php');?>
<div class="main_vip mid" >
   <div class="main_left2">
      <ul>
         <li class="bt"><img src="images/membt.jpg" border="0" /></li>
      </ul>
	  <?php 
	  
	  if(isset($_SESSION['user_name'])){
    echo "<div align='center'>欢迎回来，".$_SESSION['user_name'];
	echo "<br/><br/><a href='m_order.php'>会员中心</a>";
	echo "<br/><br/></div>";
	}else{

	  ?>
	  
  <form method="post" enctype="multipart/form-data" action="login_ok.php" onsubmit="return checkFrms(this);" name="add_custi">
				  <input name="action" type="hidden" value="login" />
  <table width="250" border="0" align="center" cellpadding="6" cellspacing="0" class="order_table_2">
    <tr>
      <td align="left">会员名：</td>
      <td align="left"><input name="user_email" type="text" class="login_form_1" id="user_email" value="" size="20" /></td>
    </tr>
    <tr>
      <td align="left" valign="top">密码：</td>
      <td align="left"><input name="user_pws" type="password" class="login_form_1" id="user_pws" value="" /></td>
    </tr>
    <tr>
      <td align="left">&nbsp;</td>
      <td align="left"><span class="f_999"><a href="#">忘记密码？</a></span></td>
    </tr>
    <tr align="right">
      <td style="padding-top:20px; padding-bottom:20px;" align="left">&nbsp;</td>
      <td align="left" style="padding-top:20px; padding-bottom:20px;"><input type="submit" class="btn" value="会员登录"  name="Submit" border="0" />
        &nbsp;&nbsp;&nbsp;&nbsp;<a href="reg.php">注册新会员</a></td>
    </tr>
  
  </table>
  
  </form>
  
  <? }?>
  
   </div>
   <div class="vip_m">
      <div class="vip_nav"><a href="index.php">首页</a> > 会员俱乐部</div>
      <div class="vip_bt"><span class="vipnewsbt">会员新闻</span><span class="vipmore"><a href="news.php?type=3&cateid=113">more</a></span></div>
         <div class="vip_txt">
		 
		 	  	<?php	
		$SQL=" SELECT * FROM hy_b_info WHERE CateID=113 Order BY SortNum asc LIMIT 6 ";
		$objDb->query($SQL);
		$result = $objDb->get_data();
		if($result){
		foreach($result as $key=>$value){
	 ?>
            <div class="vipnews">
               <div class="vipnews1"><a href="news_detail.php?id=<?=$value[InfoID]?>&cateid=<?=$value[CateID]?>" target="_blank"><?=$value['Title']?></a></div>
               <div class="vipnews2"><?=date("Y-m-d",$value['PublishDate'])?></div>
            </div>
                 <? }}?>
      
           
     </div>
   </div>
<div class="vip_r">
  <div class="memnewsbt">会员活动公告</div>
  <div class="memnewsmain">
    <?php	
		$SQL=" SELECT * FROM hy_b_info WHERE CateID=114 Order BY SortNum asc LIMIT 8 ";
		$objDb->query($SQL);
		$result = $objDb->get_data();
		if($result){
		foreach($result as $key=>$value){
	 ?>
	 <div class="memnews"><a href="news_detail.php?id=<?=$value[InfoID]?>&cateid=<?=$value[CateID]?>" target="_blank"><?=$value['Title']?></a></div>
    <? }}?>
  </div>
</div>
</div>
<div class="newpro mid">
   <div class="newpro_bt"><img src="images/vipbt.jpg" border="0" /></div>
<div class="newpro_main">
        <div class="newpro_left"><img id="left2" src="images/l.jpg" alt="向左滚动" border="0" /></div>
        <div id="IndexProShow" class="newpro_mid">
<table style="DISPLAY: inline" cellspacing="0" cellpadding="0" width="100%" height="89" border="0">
                <tbody>
                  <tr>
	<?php	
		$SQL=" select * from hy_b_sys_products where CateID = 112 order by SortNum asc  LIMIT 25 ";
		$objDb->query($SQL);
		$result = $objDb->get_data();
		if($result){
		foreach($result as $key=>$value){
	 ?>
                  
                <td height="89"  valign="middle">
                <div class="newpro_pic"><a href="m_product_detail.php?prid=<?=$value['SysProductsID']?>&cateid=<?=$value['CateID']?>"><img src="admin/pic.php?imagename=../uploadfile/product_b/<?=$value['Photos']?>&amp;imagewidth=79&amp;imageheight=87&amp;cuteit=0" width="79" height="87"></a>
                </div>
                </td>
<? }}?>
 
                
</tr>
                </tbody>
              </table>
       </div>
        <div class="newpro_right"><img id="right2" src="images/r.jpg" alt="向右滚动" border="0" /></div>
     </div>
<script language="javascript">

var Marquee1=new Marquee("IndexProShow");
Marquee1.Direction="left";
Marquee1.Step=1;
Marquee1.Width=940;
Marquee1.Height=90;
Marquee1.Timer=20;
Marquee1.ScrollStep=1;//此句允许鼠标控制
Marquee1.Start();

var left2 = document.getElementById("left2")
var right2 = document.getElementById("right2")
left2.onmouseover=function(){Marquee1.Direction=2}
left2.onmouseout=left2.onmouseup=function(){Marquee1.Step=Marquee1.BakStep}
left2.onmousedown=right2.onmousedown=function(){Marquee1.Step=Marquee1.BakStep+5}
right2.onmouseover=function(){Marquee1.Direction=3}
right2.onmouseout=right2.onmouseup=function(){Marquee1.Step=Marquee1.BakStep}

</script>
</div>
<?php include_once('footer.php');?>
</body>
</html>
